using System.ComponentModel.DataAnnotations;

namespace BW.Demo.Domain.Entities
{
    /// <summary>
    /// 溯源管理详情-养殖信息
    /// </summary>
    public class Aquaculture
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int CultivationId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        [MaxLength(50)]
        public string Batch { get; set; } = string.Empty;

        /// <summary>
        /// 品种
        /// </summary>
        [MaxLength(30)]
        public string Variety { get; set; } = string.Empty;

        /// <summary>
        /// 来源
        /// </summary>
        [MaxLength(50)]
        public string Source { get; set; } = string.Empty;

        /// <summary>
        /// 饲养天数
        /// </summary>
        public int FeedDay { get; set; }

        /// <summary>
        /// 饲料品牌
        /// </summary>
        [MaxLength(30)]
        public string Feedbrand { get; set; } = string.Empty;

        /// <summary>
        /// 饲养负责人
        /// </summary>
        [MaxLength(30)]
        public string Headfeeding { get; set; } = string.Empty;

        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime LeaveDate { get; set; }
    }
}
